package com.Object01.homework.homework03;

public class Staff {
    private String name;
    private double salary;
    private int workday;
    private double level;
    int age = 10;

    public Staff(String name, double salary, int workday, double level) {
        this.name = name;
        this.salary = salary;
        this.workday = workday;
        this.level = level;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public int getWorkday() {
        return workday;
    }

    public void setWorkday(int workday) {
        this.workday = workday;
    }

    @Override
    public String toString() {
        return "工资是：" +
                "name='" + name + '\'' +
                ", workday=" + workday +
                ", level=" + level +
                ", salary=" + salary * workday * level
                ;
    }
}

